package com.example.demo.mapper;

import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-01-07
 * Time: 11:29
 */
@Mapper
public interface UserMapper {
    //注册
    boolean register(@Param("username") String username, @Param("finalPassword") String finalPassword);

    //根据用户名查找用户
    User getUserByUserName(@Param("username") String username);

    User getUserById(@Param("uid")int uid);
}
